package game.dungeon;

import static org.junit.Assert.assertTrue;
import game.square.Square;
import game.square.SquareInterface;

import org.junit.Before;
import org.junit.Test;

public class LevelTest {
	
	@Before
	public void setUp() throws Exception {
		level = new Level<SquareInterface>(0);
	}
	
	private Level<SquareInterface> level;
	
	@Test
	public final void testAddSquare_legalCase() {
		level.addSquare(new Square(), new Coordinates(1,0,0));
	}
	
	@Test (expected=IllegalArgumentException.class)
	public final void testAddSquare_illegalCase() {
		level.addSquare(new Square(), new Coordinates(1,0,1));
	}
	
	@Test
	public final void testGetZCoordinate() {
		long zero = 0;
		assertTrue(level.getZCoordinate() == zero);
	}
}
